package com.lancer.context;


import com.lancer.beans.DependentService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class ContextMain {

	public static void main(String[] args) throws Exception {

		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();

		context.register(ContextConfig.class);

		context.refresh();

		context.getBean(DependentService.class).zsh();

	}
}
